package com.xmall.product.service;

import com.xmall.product.define.dto.spu.SpuDescDto;
import com.xmall.product.define.request.spu.SpuDescRequest;
import com.xmall.product.entity.SpuDesc;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xmall
 * @since 2023-11-02
 */
public interface ISpuDescService extends IService<SpuDesc> {

    /**
     * 保存
     */
    void save(Long spuId, List<SpuDescRequest> descs);

    /**
     * 更新
     */
    void update(Long spuId, List<SpuDescRequest> descs);

    /**
     * 删除
     */
    void delete(Long spuId);

    /**
     * spu描述信息
     */
    List<SpuDescDto> list(Long spuId);

    /**
     * spu描述信息
     */
    List<String> imageList(Long spuId);
}
